using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ShoppingEntity
{
	public class FileInfo:BaseEntity
	{
		/// <summary>
		/// 商品ID
		/// </summary>
		[Column(TypeName = "varchar(36)")]
		public string GoodsId{ get; set; }


        /// <summary>
        /// 原文件名
        /// </summary>
        [Column(TypeName = "nvarchar(32)")]
        [Required]
        public string OldFileName { get; set; }

        /// <summary>
        /// 新文件名
        /// </summary>
        [Column(TypeName = "nvarchar(32)")]
        [Required]
        public string NewFileName { get; set; }

        /// <summary>
        /// 拓展名
        /// </summary>
        [Column(TypeName = "varchar(12)")]
        public string Extension { get; set; }

        /// <summary>
        /// 文件大小
        /// </summary>
        public long Length { get; set; }

        /// <summary>
        /// 添加时间
        /// </summary>
        public DateTime CreateTime { get; set; }


		/// <summary>
		/// 添加人Id
		/// </summary>
		[Column(TypeName = "varchar(36)")]
		public string CreatorId { get; set; }

	}
}
